<?php

//Apps Defination

define ('__VER__', 'ALPHA 0.1');

define ('__APPS__', __SUBDIRECTORY__. '/apps');
define ('__APPS_WWW__', __APPS__. '/www');
define ('__MY__', __APPS_WWW__. '/my');

//
define ('__APPS_INCLUDE__', __DOCROOT__ .__SUBDIRECTORY__. '/apps/www/includes');
define ('__APPS_JS__', __SUBDIRECTORY__. '/apps/www/includes/js');
define ('__APPS_CSS__', __SUBDIRECTORY__. '/apps/www/includes/css');
define ('__APPS_IMG__', __SUBDIRECTORY__. '/apps/www/includes/images');

//
define ('__PERM__', __APPS_INCLUDE__. '/perm');
define ('__CONTACTS__',__APPS_WWW__.'/contacts');
define ('__PERSON__', __CONTACTS__ .'/person');
define ('__ORG__', __CONTACTS__ .'/organization');
define ('__COM__',__APPS_WWW__.'/com');
define ('__SAMPLES__',__APPS_WWW__.'/samples');
define ('__MARKETING__',__APPS_WWW__.'/marketing');
define ('__MEETING__',__APPS_WWW__.'/meeting');
define ('__MASTERDATA__',__APPS_WWW__.'/masterdata');

define ('__SETTINGS__',__APPS_WWW__.'/settings');
define ('__SETUP__',__SETTINGS__ . '/setup');
define ('__SECURITY__',__SETTINGS__.'/security');
define ('__MANAGE__',__SETTINGS__.'/manage');


define('_SV_PERM_',            'User');
define('_SV_PERM_Obj_',        'UserObj');
define('_SV_PERM_ID_',         'Id');
define('_SV_PERM_USERNAME_',   'UserName');
define('_SV_PERM_PRole_',      'PRole');
define('_SV_EUSERID_',         'EUserId');

define('_SV_PERM_ERole_',      'ERole');
//_EUSER_

define('_SV_PERM_Admin_Role_', 'AdminRole');


//Menu Items
$menu['Home']['config'] = array(
        "path"=>__APPS_WWW__,
        "image"=>__APPS_IMG__ . "/home.png"
);
$menu['My Settings']['config'] = array(
        "path"=>__MY__ . '/mysettingsform.php',
        "image"=>__APPS_IMG__ . "/mysettings.png"
);

$menu['Settings']['config'] = array(
        "path"=>__SETTINGS__,
        "image"=>__APPS_IMG__ . "/tools.png"
);
    $menu['Settings']['sub']['Setup']['config'] = array(
            "path"=>__SETUP__,
            "image"=>__APPS_IMG__ . "/setup.png"
    );
//SETUP
$menu['Settings']['sub']['Setup']['sub']['Sql Manager']['config'] = array(
        "path"=>  __SETUP__  . "/sqlman.php",
        "image"=>__APPS_IMG__ . "/sql.png"
);
    $menu['Settings']['sub']['Setup']['sub']['CodeGen']['config'] = array(
            "path"=> __SUBDIRECTORY__ ."/assets/_core/php/_devtools/codegen.php",
            "image"=>__APPS_IMG__ . "/code-gen.png"
    );
    $menu['Settings']['sub']['Setup']['sub']['Drafts']['config'] = array(
            "path"=> __SUBDIRECTORY__ ."/drafts/",
            "image"=>__APPS_IMG__ . "/draft.png"
    );

    $menu['Settings']['sub']['Setup']['sub']['Examples']['config'] = array(
            "path"=> __EXAMPLES__,
            "image"=>__APPS_IMG__ . "/examples.png"
    );

    $menu['Settings']['sub']['Setup']['sub']['Plugins']['config'] = array(
            "path"=> __SUBDIRECTORY__."/assets/_core/php/_devtools/plugin_manager.php" ,
            "image"=>__APPS_IMG__ . "/plugins.png"
    );
    
    $menu['Settings']['sub']['Setup']['sub']['Info']['config'] = array(
            "path"=>  __SETUP__  . "/phpinfo.php" ,
            "image"=>__APPS_IMG__ . "/plugins.png"
    );
//SECURITY
$menu['Settings']['sub']['Security']['config'] = array(
        "path"=>__SECURITY__ ,
        "image"=>__APPS_IMG__ . "/security.png"
);
$menu['Settings']['sub']['Security']['sub']['User']['config'] = array(
        "path"=>__SECURITY__ ,
        "image"=>__APPS_IMG__ . "/user.png"
);
$menu['Settings']['sub']['Security']['sub']['Role']['config'] = array(
        "path"=>__SECURITY__ ,
        "image"=>__APPS_IMG__ . "/roles.png"
);
//MANAGE
$menu['Settings']['sub']['Manage']['config'] = array(
        "path"=>__MANAGE__ ,
        "image"=>__APPS_IMG__ . "/manages.png"
);
//Assign Schools
$menu['Settings']['sub']['Manage']['sub']['School Assign']['config'] = array(
        "path"=>__MANAGE__ . "/orgassn_list.php",
        "image"=>__APPS_IMG__ . "/school_assign.png"
);
//Manage Schools
$menu['Settings']['sub']['Manage']['sub']['Roles Manage Schools']['config'] = array(
        "path"=>__MANAGE__ . "/rolemanageorg_list.php",
        "image"=>__APPS_IMG__ . "/school_Manage.png"
);


//Add config checker
//assets/_core/php/_devtools/config_checker.php
$menu['Master Data']['config'] = array(
        "path"=>__MASTERDATA__,
        "image"=>__APPS_IMG__ . "/masterdata.png"
);
    $menu['Master Data']['sub']['Seasons']['config'] = array(
        "path"=>__MASTERDATA__ . "/season_list.php",
        "image"=>__APPS_IMG__ . "/school_Manage.png"
    );
    $menu['Master Data']['sub']['Publishers']['config'] = array(
        "path"=>__MANAGE__ . "/season_list.php",
        "image"=>__APPS_IMG__ . "/school_Manage.png"
);



$menu['Logout']['config'] =array(
        "path"=>__APPS_WWW__ . "/logout.php",
        "image"=>__APPS_IMG__ . "/logout.png"
);
$menu['Contacts']['config'] = array(
        "path"=>__CONTACTS__,
        "image"=>__APPS_IMG__ . "/contacts.png"
);
$menu['Contacts']['sub']['Person']['config'] = array(
        "path"=>__PERSON__,
        "image"=>__APPS_IMG__ . "/person.png"
);
$menu['Contacts']['sub']['Organization']['config'] = array(
        "path"=>__ORG__,
        "image"=>__APPS_IMG__ . "/org.png"
);

$menu['Communication']['config'] =array(
        "path"=>__COM__,
        "image"=>__APPS_IMG__ . "/com.png"
);
$menu['Samples']['config'] =array(
        "path"=>__SAMPLES__,
        "image"=>__APPS_IMG__ . "/samples.png"
);
$menu['Meetings']['config'] =array(
        "path"=>__MEETING__,
        "image"=>__APPS_IMG__ . "/meetings.png"
);


/*

			// Destination for Code Generated class files
			define ('__MODEL__', __DOCROOT__ . '/apps_datamodel/model' );
			define ('__MODEL_GEN__', __INCLUDES__ . '/model/generated' );

			define ('__META_CONTROLS__', __DOCROOT__ . '/apps_datamodel/meta_controls' );
			define ('__META_CONTROLS_GEN__',  __INCLUDES__ .'/meta_controls/generated' );

*/


?>